package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_zbplan_type")
public class DevtZbplanTypeEntity {
    private String id;
    private String typecode;
    private String typename;
    private Integer xh;
    
    @Basic
    @Column(name = "xh", nullable = true, length = 256)
    public Integer getXh() {
        return xh;
    }
    
    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "typecode", nullable = true, length = 256)
    public String getTypecode() {
        return typecode;
    }
    
    public void setTypecode(String typecode) {
        this.typecode = typecode;
    }
    
    @Basic
    @Column(name = "typename", nullable = true, length = 256)
    public String getTypename() {
        return typename;
    }
    
    public void setTypename(String typename) {
        this.typename = typename;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtZbplanTypeEntity that = (DevtZbplanTypeEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(typecode, that.typecode) && Objects.equals(typename, that.typename);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, typecode, typename);
    }
}
